import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        name:'student', // 首页
        path: '/student/list',
        component: () => import('../views/student/index.vue'),
    },
    {
        name:'classes',
        path: '/classes/list',
        component: () => import('../views/classes/index.vue'),
    }
]

const router = createRouter({
    history: createWebHashHistory(),// 开启历史模式
    routes
})

export default router